package com.youme.model.param

import com.google.gson.Gson
import com.google.gson.annotations.SerializedName
import okhttp3.MediaType.Companion.toMediaType
import okhttp3.RequestBody
import retrofit2.http.Field

/**
 * Time:3/20/21 10:33 PM
 * Author:
 * Description:
 */
data class OrderForm(
        @SerializedName("buyerStatus") val buyerStatus: String,
        @SerializedName("deskId") val deskId: String,
        @SerializedName("items") val productId: String,
        @SerializedName("restId") val productName: String
) {
    fun toBody(): RequestBody = RequestBody.create("application/json".toMediaType(), Gson().toJson(this))
}
